package com.dimong.www.loan.ui.adapter.main;

import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;

import com.dimong.loan.sdk.ui.adapter.BaseRecyclerAdapter;
import com.dimong.www.loan.R;
import com.dimong.www.loan.bean.ClassifyBean;
import com.dimong.www.loan.ui.adapter.holder.LoadRecommendItemHolder;

/**
 * Created by wuligang on 2018/3/28.
 */

public class LoadRecommendItemAdapter extends BaseRecyclerAdapter<Object> {

    @Override
    public RecyclerView.ViewHolder viewHolderCreate(ViewGroup parent, int viewType) {
        return new LoadRecommendItemHolder(parent.getContext(), R.layout.item_item_loan_recommend, parent);
    }

    @Override
    public int getItemViewType(int position) {
        return super.getItemViewType(position);
    }

    @Override
    public void viewHolderBind(RecyclerView.ViewHolder holder, int position) {
        ClassifyBean classifyBean = (ClassifyBean) getItem(position);
        LoadRecommendItemHolder loadRecommendItemHolder = (LoadRecommendItemHolder) holder;
        loadRecommendItemHolder.setData(classifyBean);
    }

}
